<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<fmt:setBundle basename="org.akaza.openclinica.i18n.words" var="resword"/>
<fmt:setBundle basename="org.akaza.openclinica.i18n.notes" var="restext"/>

<jsp:useBean scope="session" id="newUserBean" class="org.akaza.openclinica.bean.login.UserAccountBean"/>
<jsp:useBean scope="session" id="passwordExpired" class="java.lang.String"/>
<c:choose>
	<c:when test="${userBean != null && userRole != null && !userRole.invalid && passwordExpired == 'no'}">
		<jsp:include page="../include/home-header.jsp"/>
		
		<!-- move the alert message to the sidebar-->
		<jsp:include page="../include/sideAlert.jsp"/>
		<!-- then instructions-->
		<tr id="sidebar_Instructions_open" style="display: none">
				<td class="sidebar_tab">
		
				<a href="javascript:leftnavExpand('sidebar_Instructions_open'); leftnavExpand('sidebar_Instructions_closed');"><img src="images/sidebar_collapse.gif" border="0" align="right" hspace="10"></a>
		
				<b><fmt:message key="instructions" bundle="${resword}"/></b>
		
				<div class="sidebar_tab_content">
		
				</div>
		
				</td>
		
			</tr>
			<tr id="sidebar_Instructions_closed" style="display: all">
				<td class="sidebar_tab">
		
				<a href="javascript:leftnavExpand('sidebar_Instructions_open'); leftnavExpand('sidebar_Instructions_closed');"><img src="images/sidebar_expand.gif" border="0" align="right" hspace="10"></a>
		
				<b><fmt:message key="instructions" bundle="${resword}"/></b>
		
				</td>
		  </tr>
		<jsp:include page="../include/sideInfo.jsp"/>
	</c:when>
	<c:otherwise>
		<jsp:include page="../login-include/login-header.jsp"/>
		<jsp:include page="../login-include/request-sidebar.jsp"/>
	</c:otherwise>
</c:choose>
<!-- start of login/contact.jsp -->

<!-- Main Content Area -->

<h1><span class="title_manage"><fmt:message key="contact_openclinica_administrator" bundle="${restext}"/></span></h1>
<p><fmt:message key="fill_out_form_to_contact" bundle="${restext}"/><p>
<jsp:include page="../login-include/login-alertbox.jsp"/>

<form action="Contact" method="post">
<fmt:message key="all_fields_are_required" bundle="${resword}"/><br>
<input type="hidden" name="action" value="submit">
<!-- These DIVs define shaded box borders -->
<div class="textbox_center">
	<table>
		<tr>
			<td class="formlabel"><fmt:message key="your_name" bundle="${resword}"/>:</td>
			<td><div class="formfieldXL_BG"><input type="text" name="name" value="<c:out value="${name}"/>" class="formfieldXL"></div>
			<jsp:include page="../showMessage.jsp"><jsp:param name="key" value="name"/></jsp:include></td>
		</tr>
		<tr>
			<td class="formlabel"><fmt:message key="your_email" bundle="${resword}"/>:</td>
			<td><div class="formfieldXL_BG"><input type="text" name="email" value="<c:out value="${email}"/>" class="formfieldXL"></div>
			<jsp:include page="../showMessage.jsp"><jsp:param name="key" value="email"/></jsp:include></td>
		</tr>
		<tr>
			<td class="formlabel"><fmt:message key="subject_of_your_question" bundle="${resword}"/>:</td>
			<td><div class="formfieldXL_BG"><input type="text" name="subject" value="<c:out value="${subject}"/>" class="formfieldXL"></div>
			<jsp:include page="../showMessage.jsp"><jsp:param name="key" value="subject"/></jsp:include></td>
		</tr>
		<tr>
			<td class="formlabel"><fmt:message key="your_message" bundle="${resword}"/>:</td>
			<td><div class="formtextareaXL4_BG"><textarea name="message" class="contact_message"><c:out value="${message}"/></textarea></div>
			<jsp:include page="../showMessage.jsp"><jsp:param name="key" value="message"/></jsp:include></td>
		</tr>
	</table>
</div>

 <table>
 	<tr><td><input type="submit" name="submit" value="<fmt:message key="submit" bundle="${resword}"/>" class="button_medium"></td>
	<td><input type="button" name="cancel" value="<fmt:message key="cancel" bundle="${resword}"/>" class="button_medium" onclick="javascript:window.location.href='MainMenu'"></td></tr>
</table>
</form>

<!-- end of login/contact.jsp -->
<jsp:include page="../include/footer.jsp"/>
